---
root: "/v5.1"
title: "KeyPath"
description: "Swift documentation for 'KeyPath'"
keywords: ""
layout: "default"
---

<div class="intro-declaration"><code class="language-swift">class KeyPath</code></div><p>A key path from a specific root type to a specific resulting value type.</p>
<table class="standard"><tr><th id="inheritance">Inheritance</th><td><code class="inherits">PartialKeyPath&lt;Root></code></td></tr></table><div class="discussion comment"></div>